from poker_bot.core.models.dto import ReviewDTO
from poker_bot.database.models import Review


def convert_db_model_to_review_dto(review: Review) -> ReviewDTO:
    return ReviewDTO(
        id=review.id,
        review_date=review.created_at.strftime("%Y-%m-%d"),
        review_text=review.review_text,
        image_path=review.image_path,
    )
